package com.herui.iot.config;

import java.util.ArrayList;

/**
 * Created by Administrator on 2016/1/13.
 */
public class ECGConfig {

    public static boolean AUTO_BIND_ECG = true;

    // 心电参数
    public static int ECGBASELINE = 32768; // 设备AD 0MV AD值
    public static int ECG_AMP = 6; // 设备增益
    public static int ECGCHANNELTOTAL = 12; // the number of channels
    public static float ECGREFERENCE = 2.4f; // 设备AD参考电压

    public final static int Max_heart = 140;
    public final static int Warn_Max_heart = 120;
    public final static int Warn_Min_heart = 50;
    public final static int Warn_MMin_heart = 30;
    public final static int Hearts_Rage[] = {0, 50, 60, 100, 120, Max_heart};

    public final static int INVILIBLE_HEART = 254;
    // Interval
    public final static int Warn_Heart_Interval = 1000 * 60 * 1;
    public final static int Nomal_Heart_Interval = 1000 * 60 * 5;

    public static int SHOW_FRE = 500;    // 显示频率

    //public static
    public static ArrayList<String> ECGLEADNAMES = new ArrayList<String>() {
        private static final long serialVersionUID = 1L;
        {
            add("I");
            add("II");
            add("III");
            add("aVR");
            add("aVL");
            add("aVF");
            add("V1");
            add("V2");
            add("V3");
            add("V4");
            add("V5");
            add("V6");
        }
    };

    public static final float ECGSingleConvertor(int dataBufferV){
        // 单导心电数据点的幅值
        return dataBufferV/1000.0f;
    }
}
